<?php
namespace app\admin\controller;
use think\Controller;
class Analysis extends Controller
{
    public function __construct()
    {
        parent::__construct();
        session_start();
        // $username = 
        // $username = $_SESSION['username'];
        if(empty($_SESSION['username'])) {
            // header('Location: http://127.0.0.1/bnstudy/public/index.php/admin/Admin/index');die;
            $this->wderror('http://127.0.0.1/bnstudy/public/index.php/admin/Admin/index', '请登录');die;
        }
        
         
    }
   public function index() {
       
       return view('list');
   }

}
